<?php
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'cad-aluno-form',
	'enableAjaxValidation'=>false,
));
?>
<div class="form">
        <div class="row">
		<?php echo 'Horigem da Matricula'; ?>
                <?php echo CHtml::dropDownList('cod_horigem','', Lookup::items('cad_aluno_horigem'));?>
       </div>   
<?php
if(isset($dataProvider)){
$this->widget('EExcelView', array(
            'dataProvider'=>$dataProvider,
            'grid_mode'=>'export',
            'title'=>'Financeiro - Relatório',
            'filename'=>'exp/report.html',
            'stream'=>false,
            'autoWidth'=>true,
            'exportType'=>'HTML',
            'columns'=>array(
                array(
                       'name'=>'cod_polo',
                       'type'=>'raw',
                       'value'=>'cad_polo::loadTablePolo($data->cod_polo)'
                     ),
                array(
                       'name'=>'cod_turma',
                       'type'=>'raw',
                       'value'=>'cad_turma::loadTableTurma($data->cod_turma)'
                     ),
                'nome',
                'cpf',
                'rg',
                'data_nascimento',
               array(
                       'name'=>'status',
                       'type'=>'raw',
                       'value'=>'Lookup:: item("status",$data->status)'
                     ),  
            ),
));
   echo "<a href='".Yii::app()->baseUrl."/exp/report.html' TARGET='_blank'>Report_HTML</a>";
}
?>  
       <div id="img_right">  
	<div class="row buttons">
		<?php echo CHtml::submitButton('Gerar'); ?>
	</div>   
       </div>    
</div>
<?php $this->endWidget(); ?>